<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<center>List des salles</center>
<table class="tbl_con">
	<thead>
		<tr>
			<th class="th1">Numéro</th>
			<th class="th1">Type</th>
			<th class="th1">Capacité</th>
			<th class="th1">action</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${fetchedSalles}" var="salle">
			<tr>
				<td class="td1"><c:out value="${salle.numero}"></c:out></td>
				<td class="td1"><c:out value="${salle.type}"></c:out></td>
				<td class="td1"><c:out value="${salle.capacite}"></c:out></td>
				<td class="td1"><select
					onChange="location = this.options[this.selectedIndex].value;">
						<option value="#">--Action--</option>
						<option value="salle/update?salleId=<c:out value="${salle.id}"/>">modifier</option>
						<option value="salle/delete?salleId=<c:out value="${salle.id}"/>">supprimer</option>
				</select></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
